package com.xmh.factoryDemo.controller;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xmh.factoryDemo.factory.StrategyFactory;

@Controller
@RequestMapping("/userPayController")
public class UserPayController {

	@RequestMapping(value = "/selectList", method = RequestMethod.GET)
	public Map<String, Object> selectList(String amnout) {
		Map<String, Object> map = new HashMap<String, Object>();

		map.put("data", StrategyFactory.getUserService().quote(new BigDecimal(amnout)));

		return map;
	}

}
